package com.assignwork.service;

import com.assignwork.dto.VoyageWorkNodeSearchDTO;
import com.assignwork.dto.VoyageWorkNodeSubmitDTO;
import com.assignwork.entity.VoyageWorkNode;
import com.assignwork.vo.VoyageWorkNodeLastData;
import com.assignwork.vo.VoyageWorkNodePageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;

/**
 * 船舶停时服务类
 */
public interface IVoyageWorkNodeService extends BaseService<VoyageWorkNode> {

    /**
     * 分页
     * @param dto 搜索条件
     * @param page 分页
     * @return  IPage<VoyageWorkNodePageVO>
     * @author dujianyu
     * @since 2023/8/21 13:29
     */
    IPage<VoyageWorkNodePageVO> selectVoyageWorkNodePage(VoyageWorkNodeSearchDTO dto, IPage<VoyageWorkNodePageVO> page);

    /**
     * 新增或修改
     * @param dto 提交参数
     * @return  Boolean
     * @author dujianyu
     * @since 2023/8/21 13:50
     */
    Boolean submitVoyageWorkNode(VoyageWorkNodeSubmitDTO dto);

    /**
     * 最后节点
     * @param dto 搜索条件
     * @return VoyageCabinNodeLastTime
     * @author dujianyu
     * @since 2024/2/29 13:49
     */
    VoyageWorkNodeLastData selectLastNodeData(VoyageWorkNodeSearchDTO dto);
}